/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package it.apuliait.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * This class is used by SOAP remote services.
 *
 * @author Donatello
 * @generated
 */
public class FattureXmlSoap implements Serializable {
	public static FattureXmlSoap toSoapModel(FattureXml model) {
		FattureXmlSoap soapModel = new FattureXmlSoap();

		soapModel.setFatturaId(model.getFatturaId());
		soapModel.setUserId(model.getUserId());
		soapModel.setFileFatturaXml(model.getFileFatturaXml());
		soapModel.setDataCreazione(model.getDataCreazione());

		return soapModel;
	}

	public static FattureXmlSoap[] toSoapModels(FattureXml[] models) {
		FattureXmlSoap[] soapModels = new FattureXmlSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static FattureXmlSoap[][] toSoapModels(FattureXml[][] models) {
		FattureXmlSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new FattureXmlSoap[models.length][models[0].length];
		}
		else {
			soapModels = new FattureXmlSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static FattureXmlSoap[] toSoapModels(List<FattureXml> models) {
		List<FattureXmlSoap> soapModels = new ArrayList<FattureXmlSoap>(models.size());

		for (FattureXml model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new FattureXmlSoap[soapModels.size()]);
	}

	public FattureXmlSoap() {
	}

	public long getPrimaryKey() {
		return _fatturaId;
	}

	public void setPrimaryKey(long pk) {
		setFatturaId(pk);
	}

	public long getFatturaId() {
		return _fatturaId;
	}

	public void setFatturaId(long fatturaId) {
		_fatturaId = fatturaId;
	}

	public String getUserId() {
		return _userId;
	}

	public void setUserId(String userId) {
		_userId = userId;
	}

	public String getFileFatturaXml() {
		return _fileFatturaXml;
	}

	public void setFileFatturaXml(String fileFatturaXml) {
		_fileFatturaXml = fileFatturaXml;
	}

	public String getDataCreazione() {
		return _dataCreazione;
	}

	public void setDataCreazione(String dataCreazione) {
		_dataCreazione = dataCreazione;
	}

	private long _fatturaId;
	private String _userId;
	private String _fileFatturaXml;
	private String _dataCreazione;
}